package org.jeecg.modules.miniAppCustomerEndPoint.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 记录用户领取的购物券，购物券的使用
 */
@Data
@TableName("jx_user_coupons")
public class JxUserCouponDo {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("site_id")
    private String siteId;

    @TableField("store_id")
    private String storeId;

    @TableField("coupon_id")
    private String couponId;
//
//    @TableField("coupon_value")
//    private Integer couponValue;
//
//    @TableField("expired_at")
//    private Date expiredAt;

    @TableField("used")
    private short used;

    @TableField("del_flag")
    private short delFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;
}
